import request from '@/utils/request'

// 查询客户类别
export function queryFcustType(params) {
  return request({
    url: '/tBasAssistantdataentry/queryFcustType',
    method: 'get',
    params
  })
}
// 查询客户分组
export function queryCustomerGroup(params) {
  return request({
    url: '/tBdCustomer/queryCustomerGroup',
    method: 'get',
    params
  })
}
// 国家列表
export function queryFcountryList(data) {
  return request({
    url: '/tSxCountry/querySxCountryList',
    method: 'post',
    data
  })
}
// 地区列表
export function queryFfprovincialList(data) {
  return request({
    url: '/tBasAssistantdataentry/queryFCountyList',
    method: 'post',
    data
  })
}
// 省份列表
export function queryFprovinceList(data) {
  return request({
    url: '/tBasAssistantdataentry/queryFprovinceList',
    method: 'post',
    data
  })
}

// 查询结算方式 - 分页
export function querySettletype(data) {
  return request({
    url: '/tBdSettletype/querySettletype',
    method: 'post',
    data
  })
}

// 查询税率(公共)
export function queryTBdTaxrate(data) {
  return request({
    url: '/tBdTaxrate/queryTBdTaxrate',
    method: 'post',
    data
  })
}

// 查询结算币别 - 分页(公共)
export function queryTBdCurrency(data) {
  return request({
    url: '/tBaseCurrency/queryBaseCurrencyList',
    method: 'post',
    data
  })
}

// 查询销售订单收款条件-分页(公共)
export function querytReccondition(data) {
  return request({
    url: '/tBdReccondition/querytReccondition',
    method: 'post',
    data
  })
}

// 销售部门
export function queryDepartment(data) {
  return request({
    url: '/tBdDepartment/queryDepartment',
    method: 'post',
    data
  })
}

// 销售组
export function queryOperatorGroup(data) {
  return request({
    url: '/tBdDepartment/queryOperatorGroup',
    method: 'post',
    data
  })
}
// 新增客户
export function insertCustomer(data) {
  return request({
    url: '/tBdCustomer/insertCustomer',
    method: 'post',
    data
  })
}

// 查询付款条件 - 分页
export function queryPaymentList(data) {
  return request({
    url: '/tBdReccondition/queryPaymentList',
    method: 'post',
    data
  })
}

// 查询供应类别
export function querySupplyclassify(params) {
  return request({
    url: '/tBdSupplier/querySupplyclassify',
    method: 'get',
    params
  })
}

// 查询默认价目表接口
export function queryBuyerList(data) {
  return request({
    url: '/tPurPricelist/queryPurPriceList',
    method: 'post',
    data
  })
}
// 查询供应商对应客户
export function querySupplierCustomer(data) {
  return request({
    url: '/tBdCustomer/queryTBdCustomerList',
    method: 'post',
    data
  })
}

// 新增国家
export function insertCountry(data) {
  return request({
    url: '/tSxCountry/insertCountry',
    method: 'post',
    data
  })
}
// 修改国家
export function updateCountry(data) {
  return request({
    url: '/tSxCountry/updateCountry',
    method: 'post',
    data
  })
}
// 删除国家
export function deleteCountry(data) {
  return request({
    url: '/tSxCountry/deleteCountry',
    method: 'post',
    data
  })
}
